<?php
require_once("conf/db_connection.php");
$id = $_GET['id'];


$query_update = "UPDATE trip_detail SET status='awarded' WHERE id='".$id."'";
mysql_query($query_update) or die("UPDATE TRIP DETAILS ".mysql_error());

$query_insert = "INSERT INTO status_log (trip_detail_id, status,updated_by) VALUES
('".$id."','awarded','".$_SESSION["username_nn"]."')";
mysql_query($query_insert) or die("INSERT STATUS LOG".mysql_error());

echo "1";
?>